package com.googlecode.lookie.core.log;

public class DefaultLogRecord
    implements LogRecord
{

    private String bundleName;

    private Throwable exception;

    private String message;

    private Severity severity;

    private long timestamp;

    public DefaultLogRecord()
    {
        super();
    }

    public DefaultLogRecord( String bundleName, Severity severity, String message )
    {
        this( bundleName, severity, message, null );
    }

    public DefaultLogRecord( String bundleName, Severity severity, String message, Throwable exception )
    {
        super();
        this.bundleName = bundleName;
        this.severity = severity;
        this.message = message;
        this.exception = exception;
    }

    public String getBundleName()
    {
        return bundleName;
    }

    public void setBundleName( String bundleName )
    {
        this.bundleName = bundleName;
    }

    public Throwable getException()
    {
        return exception;
    }

    public void setException( Throwable exception )
    {
        this.exception = exception;
    }

    public String getMessage()
    {
        return message;
    }

    public void setMessage( String message )
    {
        this.message = message;
    }

    public Severity getSeverity()
    {
        return severity;
    }

    public void setSeverity( Severity severity )
    {
        this.severity = severity;
    }

    public long getTimestamp()
    {
        return timestamp;
    }

    public void setTimestamp( long timestamp )
    {
        this.timestamp = timestamp;
    }

}
